<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@page import="java.util.*,com.card.setting.*" %>
<%@page import="com.card.match.*" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Template by www.lxkj.com</title>
<meta name="description" content="Administry - Admin Template by www.865171.cn" />
<meta name="keywords" content="Admin,Template" />
<!-- Favicons --> 
<link rel="shortcut icon" type="image/png" HREF="img/favicons/favicon.png"/>
<link rel="icon" type="image/png" HREF="img/favicons/favicon.png"/>
<link rel="apple-touch-icon" HREF="img/favicons/apple.png" />
<!-- Main Stylesheet --> 
<link rel="stylesheet" href="css/style.css" type="text/css" />
<!-- Your Custom Stylesheet --> 
<link rel="stylesheet" href="css/custom.css" type="text/css" />
<!--swfobject - needed only if you require <video> tag support for older browsers -->
<script type="text/javascript" SRC="js/swfobject.js"></script>
<!-- jQuery with plugins -->
<script type="text/javascript" SRC="js/jquery-1.4.2.min.js"></script>
<!-- Could be loaded remotely from Google CDN : <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> -->
<script type="text/javascript" SRC="js/jquery.ui.core.min.js"></script>
<script type="text/javascript" SRC="js/jquery.ui.widget.min.js"></script>
<script type="text/javascript" SRC="js/jquery.ui.tabs.min.js"></script>
<!-- jQuery tooltips -->
<script type="text/javascript" SRC="js/jquery.tipTip.min.js"></script>
<!-- Superfish navigation -->
<script type="text/javascript" SRC="js/jquery.superfish.min.js"></script>
<script type="text/javascript" SRC="js/jquery.supersubs.min.js"></script>
<!-- jQuery popup box -->
<script type="text/javascript" SRC="js/jquery.nyroModal.pack.js"></script>
<!-- jQuery form validation -->
<script type="text/javascript" SRC="js/jquery.validate_pack.js"></script>
<script type="text/javascript" SRC="js/jquery.dataTables.min.js"></script>

<link rel="stylesheet" type="text/css"
	href="css/jquery-ui-1.8.17.custom.css" />
<link type="text/css" href="css/jquery-ui-timepicker-addon.css"
	rel="stylesheet" />
<script type="text/javascript"
	src="js/timepack/jquery-ui-1.8.17.custom.min.js"></script>
<script type="text/javascript"
	src="js/timepack/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript"
	src="js/timepack/jquery-ui-timepicker-zh-CN.js"></script>
<script type="text/javascript">
	$(function () {
	    $(".ui_timepicker").datetimepicker({
	        showSecond: true,
	        timeFormat: 'hh:mm:ss',
	        stepHour: 1,
	        stepMinute: 1,
	        stepSecond: 1
	    });
	})
</script>
</head>
<%
	String id = request.getParameter("id");
MatchSetting agent = MatchManager.getInstance().getMatchSetting(Integer.parseInt(id));
%>
<body>
<%@include file="head.jsp"%>
	<div data-role="page" id="demo-page">
		<div data-role="header">
	          <h1>比赛详情</h1>  
	       
	    </div>
	    <div role="main" class="ui-content">
	    	<form>
				<label for="text-1" data-theme="e">ID:<%=agent.getId() %></label> </br>
				<label for="text-1" data-theme="e">账号:<%=agent.getName() %></label> </br>
				<label for="text-1" data-theme="e">游戏名称：<%=agent.getGameName()%></label> </br>
				<label for="text-1" data-theme="e">比赛人数：<%=agent.getNum()%></label> </br>
				<label for="text-1" data-theme="e">参赛费：<%=agent.getEnterDiamond()%></label> </br>
				<label for="text-1" data-theme="e">状态：<%=agent.getState()%></label> </br>
			</form>
			<div data-role="controlgroup" data-type="vertical">
			<script type="text/javascript">
				function change_agent(a_id)
				{
					var code = confirm("确认要改变吗?");
					if(code == true) {
						location.href="/GameServer/doActionPhone?action=changematch&id="+a_id;
					}
				}
			</script>
			<input type="button" onclick="change_agent(<%=agent.getId() %>)" value="<%=agent.getIntState()==0?"关闭比赛":"开启比赛" %>">
	    </div>
	    </div>
		
	</div>
	<script type="text/javascript" SRC="js/administry.js"></script>
</body>
</html>